// src/services/sessionService.js
import { ref } from 'vue';

const sessionMap = ref(new Map());

export function getSessionById(sessionId) {
  return sessionMap.value.get(sessionId);
}

export function getSession() {
    return sessionMap.value;
  }

export function addSession(sessionId, componentInstance) {
  sessionMap.value.set(sessionId, componentInstance);
}

export function removeSession(sessionId) {
  sessionMap.value.delete(sessionId);
}

